# _*_ coding:utf-8 _*_
# By:赵先宇
import os

# 用户自定义的配置

# 当前路径

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))  # 项目根目录

# 采集资产的方式 选项有 agent ssh salt
ENGINE = 'agent'

ENGINE_DICT = {
    'agent': 'src.engine.agent.AgentHandler',
    'ssh': 'src.engine.ssh.SSHHandler',
    'salt': 'src.engine.salt.SaltHandler',
}

PLUGINS_DICT = {
    'basic': 'src.plugins.basic.Basic',
    'disk': 'src.plugins.disk.Disk',
    'memory': 'src.plugins.memory.Memory',
    'nic': 'src.plugins.nic.NIC',
    'cpu': 'src.plugins.cpu.CPU',
    'main_board': 'src.plugins.main_board.MainBoard',
}

# USER = '192.168.1.30'
# PASSWORD = '000000'
# SSH_PORT = 22

DEBUG = True

ASSET_API = 'http://47.100.70.129:8081/asset/'

CERT_PATH = os.path.join(BASE_DIR, 'config', 'cert')

AUTH_KEY = 'ASDASSDASDASD'